package cn.sytton.taffe.framework.base.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * 分页参数实体
 *
 * @author skyrock
 */
@Schema(description = "分页对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageParam {
    @Schema(description = "起始记录序号")
    private int pageNum = 1;   //默认从第一条开始查

    @Schema(description = "每页记录数")
    private int pageSize = 50; //默认没页50条记录

    @Schema(description = "过滤条件")
    private Map<String, Object> filter;

    @Schema(description = "排序条件")
    private String sort;

    @Schema(description = "自定义查询参数")
    private Map<String, Object> params = new HashMap<>();

    @Schema(description = "导出配置")
    private Map<String, Object> export;
}
